import request from '@/utils/request'

// 查询区域图层列表
export function listRegionshape(query) {
  return request({
    url: '/grid/regionshape/list',
    method: 'get',
    params: query
  })
}

// 查询区域图层详细
export function getRegionshape(id) {
  return request({
    url: '/grid/regionshape/' + id,
    method: 'get'
  })
}

// 新增区域图层
export function addRegionshape(data) {
  return request({
    url: '/grid/regionshape',
    method: 'post',
    data: data
  })
}

// 修改区域图层
export function updateRegionshape(data) {
  return request({
    url: '/grid/regionshape',
    method: 'put',
    data: data
  })
}

// 删除区域图层
export function delRegionshape(id) {
  return request({
    url: '/grid/regionshape/' + id,
    method: 'delete'
  })
}

// 导出区域图层
export function exportRegionshape(query) {
  return request({
    url: '/grid/regionshape/export',
    method: 'get',
    params: query
  })
}